<?php
/**
 * Created by.
 * User: littleU-569598569
 * Date: 2021/2/3 0003
 * Time: 20:33
 */

namespace app\api\controller\v1\cms;


use app\api\controller\BaseController;
use app\api\service\Applet as AppletService;

class Applet extends BaseController
{
    public function getHomeBackground()
    {
        return AppletService::getHomeBackground();
    }

    public function setHomeBackground()
    {
        $data = input('post.');
        $result = (new AppletService())->setHomeBackground($data);
        return $result;
    }

    public function getBannerList()
    {
        return AppletService::getBannerList();
    }

    public function setBanner()
    {
        $data = input('post.');
        $result = (new AppletService())->setBanner($data);
        return $result;
    }

    public function getAppletHeader()
    {
        return AppletService::getAppletHeader();
    }

    public function setAppletHeader()
    {
        $data = input('post.');
        $result = (new AppletService())->setAppletHeader($data);
        return $result;
    }
}